    <?php $this->load->view('user/user_head');?>
    <link href="<?php echo base_url();?>js/thickbox/thickbox.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="<?php echo base_url();?>js/thickbox/thickbox.js"></script>
    <script type="text/javascript">
	<!--
		$(function() {
			$(".thickbox").click(function() {
				$('#m_category').val(this.id.split('_')[1]);
				$.ajax({
					   type: "POST",
					   url: "<?php echo base_url()?>/index.php/user/managerAction/ajax_load",
					   data: {m_category:$('#m_category').val()} ,
					   dataType : "json",
					   cache : false,
					   success: function(json){
						
						  if (json.have_data) {
							$('#name').val(json.name);
							$('#phone').val(json.phone);
							$('#remark').val(json.remark);
						  } else {
							  $('#name').val("");
							  $('#phone').val("");
							  $('#remark').val("");
						  }
					   }
					}); 
			});

			$('#save_button').click(function(){
			    var url = "<?php echo base_url()?>/index.php/user/managerAction/ajax_save";
				var data = {name:$('#name').val(), phone:$('#phone').val(),m_category:$('#m_category').val(), remark:$('#remark').val()};
				$.post(url, data, function(data){
					if (data == "1") {
						tb_remove();
						alert("保存成功");
					} else {
						alert(data);
		    		}
				})
			});
		});
		
	//-->
	</script>
    <input type="hidden" id="page_code" value="3"/>
    <!-- begin: main content area #main -->
     <div id="main">
      <!-- begin: #col1 - first float column -->
      <div id="col1" role="complementary">
        <?php $this->load->view('user/manager_left_nav.php')?>
      </div>
      <!-- end: #col1 -->
      <!-- begin: #col3 static column -->
      <div id="col3" role="main">
        <div id="col3_content" class="clearfix">
         <div id="ie_clearing">&nbsp;</div>
           
             <div class="my_box" >
           		<p class="box_title"><span>婚礼工作人员安排管理</span></p>
 				<div style="height:100px;">
	          	    <ul class="manager_list">
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_1" title="婚庆公司负责人" class="thickbox">婚庆公司负责人</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_2" title="婚礼主持人" class="thickbox">婚礼主持人</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_3" title="酒店负责人" class="thickbox">酒店负责人</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_4" title="证婚人" class="thickbox">证婚人</a></span></li>
	          	    </ul>
	          	    <ul class="manager_list">
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_5" title="化妆师" class="thickbox">化妆师</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_6" title="摄像师" class="thickbox">摄像师</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_7" title="照相师" class="thickbox">照相师</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_8" title="车队负责人" class="thickbox">车队负责人</a></span></li>
	          	    </ul>
	          	    <ul class="manager_list">
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_9" title="新郎家总协调人" class="thickbox">新郎家总协调人</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_10" title="新娘家总协调人" class="thickbox">新娘家总协调人</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_11" title="新郎助理" class="thickbox">新郎助理</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_12" title="新娘助理" class="thickbox">新娘助理</a></span></li>
	          	    </ul>
	          	    <ul class="manager_list">
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_13" title="其他人员1" class="thickbox">其他人员1</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_14" title="其他人员2" class="thickbox">其他人员2</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_15" title="其他人员3" class="thickbox">其他人员3</a></span></li>
	          	    	<li><span><a href="#TB_inline?height=230&width=500&inlineId=manager_form" id="m_16" title="其他人员4" class="thickbox">其他人员4</a></span></li>
	          	    </ul>
 				</div>
            </div>
        </div>
        <div id="ie_clearing">&nbsp;</div>
        <!-- End: IE Column Clearing -->
      </div>
      <!-- end: #col3 -->
    </div>
  	<div id="manager_form" style="display:none">
  		<input type="hidden" name="m_category" id="m_category"/>
 		<p>姓名：<input id="name" name="name" type="text" maxlength="5"/><span style="margin-left:10px;color:#8b8b8b">必须输入姓名；姓名最多输入5个字符</span></p>
 		<p>电话：<input id="phone" name="phone" type="text" maxlength="20"/><span style="margin-left:10px;color:#8b8b8b">电话最多输入25个字符</span></p>
 		<p>备注：<input id="remark" name="remark" type="text" style="width:300px;" maxlength="50"/><span style="margin-left:10px;color:#8b8b8b">备注最多输入50个字符</span></p>
 		<p><button id="save_button" style="padding:5px 10px ;">保存</button></p>
 	</div>
    <!-- end: #main -->
<?php $this->load->view('user/footer');?>